//运行结果：Adaptee's specific request.
public interface ITarget {
    void request();
}
public class Adaptee {
    public void specificRequest() {
        System.out.println("Adaptee's specific request.");
    }
}
public class Adapter implements Target {
    private Adaptee adaptee;

    public Adapter(Adaptee adaptee) {
        this.adaptee = adaptee;
    }

    @Override
    public void request() {
        adaptee.specificRequest();
    }
}
public class Client {
    public static void main(String[] args) {
        Target target = new Adapter(new Adaptee());
        target.request();
    }
}